Optimal. Leaf size=23 \[ \frac{\log (x)}{a}-\frac{\log \left (a+b x^n\right )}{a n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0105708, antiderivative size = 23, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.308, Rules used = {266, 36, 29, 31} \[ \frac{\log (x)}{a}-\frac{\log \left (a+b x^n\right )}{a n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 266
Rule 36
Rule 29
Rule 31
Rubi steps
\begin{align*} \int \frac{1}{x \left (a+b x^n\right )} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{x (a+b x)} \, dx,x,x^n\right )}{n}\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,x^n\right )}{a n}-\frac{b \operatorname{Subst}\left (\int \frac{1}{a+b x} \, dx,x,x^n\right )}{a n}\\ &=\frac{\log (x)}{a}-\frac{\log \left (a+b x^n\right )}{a n}\\ \end{align*}
Mathematica [A] time = 0.0068517, size = 22, normalized size = 0.96 \[ \frac{n \log (x)-\log \left (a+b x^n\right )}{a n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.002, size = 29, normalized size = 1.3 \begin{align*}{\frac{\ln \left ({x}^{n} \right ) }{na}}-{\frac{\ln \left ( a+b{x}^{n} \right ) }{na}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.984239, size = 38, normalized size = 1.65 \begin{align*} -\frac{\log \left (b x^{n} + a\right )}{a n} + \frac{\log \left (x^{n}\right )}{a n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.991612, size = 47, normalized size = 2.04 \begin{align*} \frac{n \log \left (x\right ) - \log \left (b x^{n} + a\right )}{a n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.902824, size = 41, normalized size = 1.78 \begin{align*} \begin{cases} \tilde{\infty } \log{\left (x \right )} & \text{for}\: a = 0 \wedge b = 0 \wedge n = 0 \\- \frac{x^{- n}}{b n} & \text{for}\: a = 0 \\\frac{\log{\left (x \right )}}{a + b} & \text{for}\: n = 0 \\\frac{\log{\left (x \right )}}{a} & \text{for}\: b = 0 \\\frac{\log{\left (x \right )}}{a} - \frac{\log{\left (\frac{a}{b} + x^{n} \right )}}{a n} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{{\left (b x^{n} + a\right )} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]